.menu {
    @apply relative z-10 bg-blue-600 divide-y divide-white;

    width: 60px;

    &-logo {
        @apply flex justify-center items-center p-2;

        img {
            @apply cursor-pointer w-10 h-10 rounded-full;
        }
    }

    &-list {
        @apply box-border py-2 space-y-2;
    }

    &-item {
        @apply relative flex justify-center items-center w-full h-10;

        img {
            @apply transition-all block w-10 h-10;

            border-radius: 100%;

            &:hover {
                @apply rounded-lg;
            }
        }

        &.logout {
            position: fixed;
            left: 0px;
            bottom: 10px;
            width: 59px;
            height: 59px;
        }

        &.cockpit {
            position: fixed;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            left: 10px;
            bottom: 70px;
            line-height: 40px;
            border-radius: 20px;
            width: 40px;
            height: 40px;
            background-color: #c35ae9;
        }

        &.active {
            &:before {
                @apply block w-1 h-full absolute left-0 top-0 bg-purple-500 rounded-r-lg;

                content: '.';
                text-indent: -9999px;
            }

            .menu-icon {
                @apply cursor-default;
            }

            img {
                @apply rounded-lg;
            }
        }

        &:hover {
            .menu-tips {
                @apply opacity-100;
            }
        }
    }

    &-icon {
        @apply cursor-pointer box-border p-2 w-14;
    }

    &-tips {
        @apply pointer-events-none transition-opacity opacity-0 absolute left-full top-1/2 pl-2;

        transform: translateY(-50%);

        &::before,
        &::after {
            @apply block w-2 h-2 absolute left-1 top-1/2 bg-white;

            content: '.';
            text-indent: -9999px;
            transform: translateY(-50%) rotate(45deg);
        }

        &::before {
            @apply shadow;
        }

        &::after {
            @apply z-20;
        }

        span {
            @apply relative z-10 shadow text-xs text-gray-700 p-2 bg-white rounded whitespace-nowrap;
        }
    }
}